/**
 * 
 */
app.controller('cP002', ['$scope', 'rUser','rPrivilege', function($scope, rUser, rPrivilege) {
	$scope.userListVal = [];
	$scope.userList;
	rUser.get().$promise.then(function(result) {
		$scope.userList = result;
		for(i = 0; i < result.length; i++) {
			$scope.userListVal.push(false);
		}
	});
   	rPrivilege.get().$promise.then(function(result) {
		$scope.privilegeList = result;
		for(i = 0; i < result.length; i++) {
			$scope.privilegeListVal.push(false);
		}
	});
}]);